home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1995 November / EnigmA AMIGA RUN 02 (1995)(G.R. Edizioni)(IT)[!][issue 1995-11][Skylink CD].iso / earcd / program / misc / tri14dev.lha / Triton / Developer / DemoSource / trlogo.c < prev   
C/C++ Source or Header  |  1995-08-25  |  1KB  |  52 lines

  1. /*
  2.  *  Triton - The object oriented GUI creation system for the Amiga
  3.  *  Written by Stefan Zeiger in 1993-1995
  4.  *
  5.  *  (c) 1993-1995 by Stefan Zeiger
  6.  *  You are hereby allowed to use this source or parts
  7.  *  of it for creating programs for AmigaOS which use the
  8.  *  Triton GUI creation system. All other rights reserved.
  9.  *
  10.  *  trLogo.c - The Triton logo
  11.  *
  12.  */
  13.  
  14.  
  15. #include <stdio.h>
  16. #include <stdlib.h>
  17. #include <string.h>
  18.  
  19. #include <libraries/triton.h>
  20.  
  21. #ifdef __GNUC__
  22. #ifndef __OPTIMIZE__
  23. #include <clib/triton_protos.h>
  24. #else
  25. #include <inline/triton.h>
  26. #endif /* __OPTIMIZE__ */
  27. #else
  28. #include <proto/triton.h>
  29. #endif /* __GNUC__ */
  30.  
  31.  
  32. int main(void)
  33. {
  34.   if(TR_OpenTriton(TRITON11VERSION,TRCA_Name,"trLogo",TRCA_LongName,"trLogo",TRCA_Info,"The Triton Logo",TRCA_Version,"1.0",TAG_END))
  35.   {
  36.     if(TRIM_trLogo_Init())
  37.     {
  38.       TR_AutoRequestTags(Application,NULL,
  39.         WindowID(1), WindowPosition(TRWP_CENTERDISPLAY),
  40.         WindowTitle("trLogo"), WindowFlags(TRWF_NOMINTEXTWIDTH),
  41.         BoopsiImageD(TRIM_trLogo,57,57),
  42.         TAG_END);
  43.       TRIM_trLogo_Free();
  44.     }
  45.     TR_CloseTriton();
  46.     return 0;
  47.   }
  48.  
  49.   puts("Can't open triton.library v2+.");
  50.   return 20;
  51. }
  52.